package myky.com.doctorapp.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import myky.com.doctorapp.R
import myky.com.doctorapp.entity.AreaWrapperEntity

class FindDoctorCityAdapter(data: List<AreaWrapperEntity.DataBean.AreaBean.CityBean>) : BaseQuickAdapter<AreaWrapperEntity.DataBean.AreaBean.CityBean, BaseViewHolder>(R.layout.city_item,data
) {

    override fun convert(holder: BaseViewHolder?, item: AreaWrapperEntity.DataBean.AreaBean.CityBean) {
        holder?.let {
            it.setText(R.id.pop_child_tv, item.cityName)
            it.addOnClickListener(R.id.rootView)
        }

    }
}